from django.db import models
from django.utils import timezone


class LoginUser(models.Model):
    username = models.CharField(max_length=20)
    password = models.CharField(max_length=100)
    nickname = models.CharField(max_length=50)


class LoginUserDetail(models.Model):
    age = models.IntegerField(default=0)
    birthday = models.DateField(default=timezone.now().date())
    height = models.IntegerField(default=0)
    weight = models.IntegerField(default=0)
    login_user = models.OneToOneField(LoginUser, on_delete=models.CASCADE)

